package com.rd.project.service;

import com.itextpdf.text.DocumentException;
import com.rd.project.model.Klas;
import com.rd.project.model.Score;
import com.rd.project.model.Student;
import com.rd.project.model.Test;
import com.rd.project.model.Vak;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;


public interface DataService {
    
    public List<Klas> getAlleKlassen();
    public List<Vak> getAlleVakkenFromKlas(int klasId);
    public List<Test> getAlleTestenFromVak(int vakId);
    public List<Score> getAlleScoresFromTest(int testId);

    public List<Score> getScoreFromStudentId(int id);
    public List<Score> getScoreFromTestId(int id);
    
    public Klas getKlasFromStudentId(int studentId);
  
    public int getTestIdFromScoreId(int id);
    public Test getTestFromTestId(int id);
    public Test getTestFromScoreId(int scoreId);

    public List<Score> getAlleScore();
    public Student getStudent(int id);
    public Vak getVak(int vakId);
    public Test getTest(int testId);
    public Klas getKlas(int klasId);

    public void genereerPdfStudent(int studentId) throws DocumentException, IOException;
    public void genereerPdfTest(int testId) throws DocumentException, IOException;
    public void genereerPdfVak (int vakId) throws DocumentException, IOException;
    public void genereerPdfKlas (int klasId) throws DocumentException, IOException;
    public void exportPdf(File temp) throws FileNotFoundException, IOException;
}
